# from flask import Flask
#
# app = Flask(__name__)
#
# from app.controller.usr import usr_module
# from app.controller.fund import fund_module
# from app.controller.advisor import advisor_module
#
# app.register_blueprint(usr_module)
# app.register_blueprint(fund_module)
# app.register_blueprint(advisor_module)
#
# from . import app
def create_app():
    from flask import Flask
    from flask_cors import CORS
    app = Flask(__name__)
    from app.controller.usr import usr_module
    from app.controller.fund import fund_module
    from app.controller.advisor import advisor_module

    CORS(app)

    app.register_blueprint(usr_module)
    app.register_blueprint(fund_module)
    app.register_blueprint(advisor_module)

    return app